package api.istsoft.ru.dal.Auth;

import android.content.SharedPreferences.Editor;

import com.google.gson.annotations.SerializedName;

public class Profile {
	private int countryId;
	private int state;
	private int cityId;
	private String address;
	private String lastName;
	private String firstName;
	@SerializedName("MidleName")
	private String middleName;
	private String contactPerson;
	private String phoneNumber;
	
	public int getCountryId() {
		return countryId;
	}
	public void setCountryId(int countryId) {
		this.countryId = countryId;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getMiddleName() {
		return middleName;
	}
	public void setMiddleName(String middleName) {
		this.middleName = middleName;
	}
	public String getContactPerson() {
		return contactPerson;
	}
	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public int getCityId() {
		return cityId;
	}
	public void setCityId(int cityId) {
		this.cityId = cityId;
	}
	
	public void store(Editor editor) {
		editor.putInt("Profile_CountryId", countryId);
		editor.putInt("Profile_State", state);
		editor.putInt("Profile_CityId", cityId);
		editor.putString("Profile_Address", address);
		editor.putString("Profile_ContactPerson", contactPerson);
		editor.putString("Profile_LastName", lastName);
		editor.putString("Profile_FirstName", firstName);
		editor.putString("Profile_MiddleName", middleName);
		editor.putString("Profile_PhoneNumber", phoneNumber);	
	}
}